/*
 * @Author: wxinlong 3075748076@qq.com
 * @Date: 2023-06-17 10:26:14
 * @LastEditors: wxinlong 3075748076@qq.com
 * @LastEditTime: 2023-06-17 10:46:48
 * @Description: 数据库配置
 * Copyright (c) 2023 by wxinlong 3075748076@qq.com, All Rights Reserved.
 */
const { Sequelize } = require('sequelize')

const sequelize = new Sequelize(
  // 数据库名称
  'your_database_name',
  // 数据库用户名
  'your_username',
  // 数据库密码
  'your_password',
  {
    // 如果是远程数据库，可以填写 ip 地址
    host: 'localhost',
    // sql 方言
    dialect: 'mysql'
  }
)

module.exports = sequelize
